import style from "./style.module.css";
import {Props,State} from "./model";
import { Component } from "react";
import moment from "moment"
export default class OmitLine extends Component<Props,State>{
    constructor(props:Props){
        super(props);

    }

   
    
    componentDidMount(){
    }
  

    
    render = () => {
        const {data}=this.props
     
        return (
            <div className={style.OmitLine}>
                <div className={style.left}>
                    {data.title}
                </div>
                <div className={style.right}>
                    {
                        moment(data.addTime).format("YYYY-MM-DD")
                    }
                </div>
            </div>
        )
    }
}